package bairui.international.console.web.controller.request.agent;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_UserAgentRequestOrder;

/**
 *
 * 审核不通过
 *
 * @generated
 * 
 * @see STest_C_Request_Agent_NoPass_Add 测试
 *
 */
@Controller
public class C_Request_Agent_NoPass_Add
 extends SC_Request_Agent_NoPass_Add 
{
	
	@Autowired private Service_UserAgentRequestOrder service_UserAgentRequestOrder;
	
	/**
	 * 添加
	 */
	@Action(Add.class)
	@PostMapping(Add.RequestMappingValue)
	public @FomatOutput @ResponseBody Object add(
		@Valid Add.InputModel input, 
		@PathVariable(name=Add.PathVariableName.Id) long id
	) throws Exception {
		service_UserAgentRequestOrder.vertifyNoPass(id, input.gainMessage());
		//
		return null;
	}
	

}
